package org.jeecg.modules.flow.record.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.modules.dock.enums.DockDataStatus;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 流程引擎日志
 * @Author: jeecg-boot
 * @Date: 2023-09-12
 * @Version: V1.0
 */
@Data
@TableName("flow_request_log")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "flow_request_log对象", description = "流程引擎日志")
public class FlowRequestLog implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 逻辑删除
     */
    @Excel(name = "逻辑删除", width = 15)
    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private String delFlag;
    /**
     * 来源系统
     */
    @Excel(name = "来源系统", width = 15)
    @ApiModelProperty(value = "来源系统")
    private String source;
    /**
     * 目标系统
     */
    @Excel(name = "目标系统", width = 15)
    @ApiModelProperty(value = "目标系统")
    private String target;
    /**
     * 接口业务码
     */
    @Excel(name = "接口业务码", width = 15)
    @ApiModelProperty(value = "接口业务码")
    private String businessCode;
    /**
     * 唯一编码
     */
    @Excel(name = "唯一编码", width = 15)
    @ApiModelProperty(value = "唯一编码")
    private String uuid;
    /**
     * 接收时间
     */
    @Excel(name = "接收时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "接收时间")
    private Date receiveTime;
    /**
     * 接收数据
     */
    @Excel(name = "接收数据", width = 15)
    @ApiModelProperty(value = "接收数据")
    private String data;
    /**
     * 接收状态
     */
    @Excel(name = "接收状态", width = 15)
    @ApiModelProperty(value = "接收状态")
    private DockDataStatus status;
    /**
     * 响应码
     */
    @Excel(name = "响应码", width = 15)
    @ApiModelProperty(value = "响应码")
    private String resultCode;
    /**
     * 响应数据
     */
    @Excel(name = "响应数据", width = 15)
    @ApiModelProperty(value = "响应数据")
    private String resultData;
    /**
     * 节点名称
     */
    @Excel(name = "接口名称", width = 15)
    @ApiModelProperty(value = "节点名称")
    private String interfaceName;

    @ApiModelProperty(value = "业务单据")
    private String businessDocument;
    @ApiModelProperty(value = "单据编号")
    private String documentCode;
}
